<?php

namespace App\Services\Api;

/**
 *资产合作-找资金
 */
class CMS60101
{
    public $apiCode = 'CMS#60101';
    public $pageNo = 1;
    public $pageSize = 10;
    public $domainId = -1;
    public $mainId = -1;
    public $methodId = -1;
    public $limitYear = '';

    public function getInitPostData($postData)
    {
        return [
            'pageNo' => $this->getPageNo(@$postData['pageNo']),
            'pageSize' => $this->getPageSize(@$postData['pageSize']),
            'domainId' => $this->getDomainId(@$postData['domainId']),
            'mainId' => $this->getMainId(@$postData['mainId']),
            'methodId' => $this->getMethodId(@$postData['methodId']),
            'limitYear' => $this->getLimitYear(@$postData['limitYear']),
        ];
    }

    public function getPageNo($pageNo = '')
    {
        return $pageNo ? $pageNo : $this->pageNo;
    }

    public function getPageSize($pageSize = '')
    {
        return $pageSize ? $pageSize : $this->pageSize;
    }

    public function getDomainId($domainId = '')
    {
        return $domainId ? $domainId : $this->domainId;
    }
    public function getMainId($mainId = '')
    {
        return $mainId ? $mainId : $this->mainId;
    }
    public function getMethodId($methodId = '')
    {
        return $methodId ? $methodId : $this->methodId;
    }
    public function getLimitYear($limitYear = '')
    {
        return $limitYear ? $limitYear : $this->limitYear;
    }

    public function getInitApiCode()
    {
        return $this->apiCode;
    }

}
